package cn.yangliu.nacos.gateway.service;

import java.util.Set;

import cn.yangliu.nacos.gateway.model.Oauth2TokenInfo;

/**
 * The type of nacos.
 *
 * @author 问道于盲
 * @date 2020 -01-01
 */
public interface Oauth2ClientService {

    /**
     * Find oauth 2 client authority by client id set.
     *
     * @param clientId the client id
     * @return the set
     */
    Set<String> findOauth2ClientAuthorityByClientId(String clientId);

    /**
     * Client info oauth 2 token info.
     *
     * @param token the token
     * @return the oauth 2 token info
     */
    Oauth2TokenInfo clientInfo(String token);

}
